home *** CD-ROM | disk | FTP | other *** search
Wrap
#if !defined(AFX_CELL_H__A614CD07_7E20_11D2_B6B4_444553540000__INCLUDED_) #define AFX_CELL_H__A614CD07_7E20_11D2_B6B4_444553540000__INCLUDED_ #if _MSC_VER >= 1000 #pragma once #endif // _MSC_VER >= 1000 // Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++ // NOTE: Do not modify the contents of this file. If this class is regenerated by // Microsoft Visual C++, your modifications will be overwritten. ///////////////////////////////////////////////////////////////////////////// // CCell wrapper class class CCell : public CWnd { protected: DECLARE_DYNCREATE(CCell) public: CLSID const& GetClsid() { static CLSID const clsid = { 0xdd44c0ea, 0xb2cf, 0x11d1, { 0x8d, 0xd2, 0x44, 0x45, 0x53, 0x54, 0x0, 0x0 } }; return clsid; } virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL) { return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID); } BOOL Create(LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CFile* pPersist = NULL, BOOL bStorage = FALSE, BSTR bstrLicKey = NULL) { return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID, pPersist, bStorage, bstrLicKey); } // Attributes public: long GetCols(); void SetCols(long); BOOL GetBorder(); void SetBorder(BOOL); BOOL GetTopLabelVisible(); void SetTopLabelVisible(BOOL); BOOL GetSideLabelVisible(); void SetSideLabelVisible(BOOL); BOOL GetHScrollVisible(); void SetHScrollVisible(BOOL); BOOL GetVScrollVisible(); void SetVScrollVisible(BOOL); BOOL GetPageLabelVisible(); void SetPageLabelVisible(BOOL); long GetTopLabelHeight(); void SetTopLabelHeight(long); long GetSideLabelWidth(); void SetSideLabelWidth(long); BOOL GetRowSelectedMode(); void SetRowSelectedMode(BOOL); BOOL GetMultiSelectedMode(); void SetMultiSelectedMode(BOOL); BOOL GetDynamicEditArea(); void SetDynamicEditArea(BOOL); BOOL GetMultiColSizeMode(); void SetMultiColSizeMode(BOOL); BOOL GetMultiRowSizeMode(); void SetMultiRowSizeMode(BOOL); BOOL GetEnablePopMenu(); void SetEnablePopMenu(BOOL); BOOL GetCurrentTopLabelHint(); void SetCurrentTopLabelHint(BOOL); BOOL GetCurrentSideLabelHint(); void SetCurrentSideLabelHint(BOOL); BOOL GetResizeWhenPasteNeed(); void SetResizeWhenPasteNeed(BOOL); BOOL GetAllowSizeCell(); void SetAllowSizeCell(BOOL); BOOL GetGridReadOnly(); void SetGridReadOnly(BOOL); long GetRows(); void SetRows(long); BOOL GetEnableUndo(); void SetEnableUndo(BOOL); BOOL GetAllowSizeRowInGrid(); void SetAllowSizeRowInGrid(BOOL); BOOL GetAllowSizeColInGrid(); void SetAllowSizeColInGrid(BOOL); // Operations public: void DoPrint(BOOL showdlg); void DoPrintPageSetup(); void DoSetCellAlignment(long col, long row, long align); void DoSetCellTextStyle(long col, long row, long style); void DoSetCell3DState(long col, long row, long state); void DoSetCellData(long col, long row, const VARIANT& data); void DoSetCellNumberStyle(long col, long row, BOOL commas, BOOL percent, short decimal, short currencychar, double unit, short minus, BOOL mathstyle); void DoSetButtonCell(long col, long row, LPCTSTR text, LPCTSTR mesg); void DoSetRadioCell(long col, long row, LPCTSTR items); void DoSetDroplistCell(long col, long row, LPCTSTR items, BOOL hidetag, BOOL readonly); void DoSetCheckboxCell(long col, long row, LPCTSTR text); void DoSetTextSpinCell(long col, long row, LPCTSTR items); void DoSetValueSpinCell(long col, long row, double min, double max, double step); void DoSetNormalCell(long col, long row); void DoSetCellInputControlCase(long col, long row, short state); void DoSetCellInputControlMask(long col, long row, LPCTSTR mask); void DoSetCellInputOnlyValue(long col, long row, BOOL maxflag, double max, BOOL minflag, double min); void DoSetCellColor(long col, long row, long foreclr, long backclr); void DoInsertCol(long col, long count); void DoInsertRow(long row, long count); void DoAppendCol(long count); void DoAppendRow(long count); void DoRedrawAll(); void DoRedrawCell(long col, long row); void DoRedrawRange(long startcol, long startrow, long endcol, long endrow); void DoRedrawGrid(); void DoRedrawTopLabel(); void DoRedrawSideLabel(); void DoRedrawHScroll(); void DoRedrawVScroll(); void DoRedrawPageLabel(); void DoDeletePage(long index, long count); void DoSetPageLabel(long index, LPCTSTR label); void DoDeleteCol(long pos, long count); void DoDeleteRow(long pos, long count); void DoAppendPage(LPCTSTR label, long count); void DoSetCellFont(long col, long row, long size, long style, LPCTSTR name); long DoGetLeftCol(); long DoGetTopRow(); long DoGetCurrentCol(); long DoGetCurrentRow(); void DoSetDefaultRowHeight(long height); void DoSetDefaultColWidth(long width); void DoSetRowHeight(long row, long height); void DoSetColWidth(long col, long width); BOOL DoGetColWidth(long col, long* width); BOOL DoGetRowHeight(long row, long* height); void DoSortByCol(BOOL direction, long col); void DoSetSortCol(long col, BOOL sort); void DoJoinCells(long startcol, long startrow, long endcol, long endrow); void DoUnJoinCells(long col, long row); void DoSetLeftCol(long col); void DoSetTopRow(long row); void DoMoveToCell(long col, long row); BOOL DoGetJoinRange(long col, long row, long* startcol, long* startrow, long* endcol, long* endrow); void DoSetFormula(long col, long row, LPCTSTR text); void DoDelFormula(long col, long row); void DoCalculateAll(); BOOL IsFormulaCell(long col, long row); void DoSetRefChart(long col, long row, long startcol, long startrow, long endcol, long endrow); void DoSetChart(long col, long row, long datacols, long datarows); void DoSetChartRefData(long col, long row, long chartdatacol, long chartdatarow, long refcol, long refrow); void DoSetChartData(long col, long row, long chartdatacol, long chartdatarow, const VARIANT& data); void DoDelChart(long col, long row); BOOL IsChartCell(long col, long row); void DoSetDefaultFont(long size, long style, LPCTSTR name); void DoSelectCell(long col, long row); void DoSelectRange(long startcol, long startrow, long endcol, long endrow); void DoClearSelection(); BOOL IsSelectedCell(long col, long row); void DoCopyArea(long startcol, long startrow, long endcol, long endrow); void DoCopySelected(); void DoCutSelected(); void DoCutArea(long startcol, long startrow, long endcol, long endrow); void DoPaste(long col, long row, BOOL samesize); BOOL DoGetFirstSelectedCell(long* col, long* row); BOOL DoGetNextSelectedCell(long* col, long* row); BOOL DoGetCellData(long col, long row, VARIANT* data); void DoDrawHLine(long col1, long col2, long row, BOOL top, long color, long size); void DoDrawVLine(long row1, long row2, long col, BOOL left, long color, long size); void DoDrawXLine(long col1, long row, long col2, long row2, BOOL dir, long color, long size); void DoDelXLine(long col1, long row1, long col2, long row2); void DoDelUserFunction(LPCTSTR name); void DoDelHLine(long col1, long col2, long row, BOOL top); void DoDelVLine(long row1, long row2, long col, BOOL left); void DoSetCurrentPage(long pageno); long DoGetCurrentPage(); void DoSetTotalPages(long pages); long DoGetTotalPages(); void DoSetCanDragDrop(BOOL drag); void DoInsertPage(LPCTSTR label, long location, long count); void DoShowCurrentCell(BOOL focus, BOOL highlight); void DoSetEqualRowHeight(BOOL equal); void DoChartGuide(long col, long row, long col2, long row2); void DoInputFormula(long col, long row); BOOL DoFetchFuncParameter(short no, VARIANT* para); void DoLogin(long id, LPCTSTR passwd); BOOL DoCalculateExpr(LPCTSTR expr, short* rettype, VARIANT* exprresult); void DoSetCellValue(long col, long row, double value); void DoSetCellString(long col, long row, LPCTSTR string); void DoSetChartGeneralData(long col, long row, short charttype, BOOL xaxisAttr, LPCTSTR title, LPCTSTR foot, LPCTSTR yaxisTitle); void DoRefreshChart(long col, long row); BOOL DoGetFormula(long col, long row, VARIANT* text); void DoDrawLineDlg(); void DoDrawLine(long startcol, long startrow, long endcol, long endrow, long type, long size, long color); void DoSetChartValueData(long col, long row, long chartcol, long chartrow, double value); void DoClearLine(long startcol, long startrow, long endcol, long endrow, long type); void DoSetBackGroundDlg(); void DoSetBackGround(long style); void DoSetChartStringData(long col, long row, long chartcol, long chartrow, LPCTSTR text); BOOL DoGetColWidthVB(long col, VARIANT* width); BOOL DoGetRowHeightVB(long row, VARIANT* height); BOOL DoGetJoinRangeVB(long col, long row, VARIANT* startcol, VARIANT* startrow, VARIANT* endcol, VARIANT* endrow); BOOL DoCalculateExprVB(LPCTSTR expr, VARIANT* rttype, VARIANT* exprsult); BOOL DoGetFirstSelectedCellVB(VARIANT* col, VARIANT* row); void DoFind(BOOL withrepl); void DoReplace(); void DoLocate(); void DoShowFindDialog(BOOL show); void DoCloseFindDialog(); BOOL DoGetNextSelectedCellVB(VARIANT* col, VARIANT* row); void DoSetDropGridCell(long col, long row, long areacol1, long arearow1, long areacol2, long arearow2, long pageno, BOOL onlycol, long validcol, BOOL hidetag, BOOL readonly); BOOL DoOpenFileDbase(short dbasetype, LPCTSTR filename, VARIANT* tables); BOOL DoOpenODBCDbase(LPCTSTR connectstr, VARIANT* tables); void DoCloseDbase(); void DoPrintPreview(BOOL allowPageset); void DoSetPrintHead(LPCTSTR left, LPCTSTR mid, LPCTSTR right); void DoSetPrintFoot(LPCTSTR left, LPCTSTR mid, LPCTSTR right); void DoSetPrintLabel(BOOL collabel, BOOL rowlabel); void DoSetPrintTitle(long col1, long row1, long col2, long row2, long Rows, long Cols); void DoSetCellPicture(long col, long row, LPCTSTR picturefile, long style); void DoSetButtonCellEx(long col, long row, LPCTSTR text, LPCTSTR runstring); void DoCalculatePage(long pageno); void DoUndo(); void DoRedo(); void DoDiscardUndo(); BOOL DoGetRedoState(); BOOL DoGetUndoState(); void DoSetMessageTitle(const VARIANT& title); void DoSetPageCellData(long col, long row, long page, const VARIANT& data); BOOL DoGetPageCellData(long col, long row, long page, VARIANT* data); void DoSetCellReadOnly(long col, long row, BOOL readonly); long DoOpenFile(LPCTSTR filename); long DoSaveFile(LPCTSTR filename); long DoGetColBestWidth(long col); long DoGetRowBestHeight(long row); BOOL DoDumpDbaseData(LPCTSTR sqlstring, long col, long row, long page, BOOL withfieldname, VARIANT* dumpcols, VARIANT* dumprows); BOOL DoDumpDbaseTable(LPCTSTR tablename, long col, long row, long page, BOOL withfieldname, VARIANT* dumpcols, VARIANT* dumprows); BOOL DoAddUserFunction(LPCTSTR functype, LPCTSTR funcname, short rttype, short paranum, short* paratype, LPCTSTR funchelp); BOOL DoAddUserFunctionVB(LPCTSTR functype, LPCTSTR funcname, long rttype, long paranum, LPCTSTR paratype, LPCTSTR funchelp); void DoSetPrintPara(float scale, short papersize, BOOL orientation); BOOL DoOpenFileDbaseVfp(short dbasetype, LPCTSTR filename); BOOL DoDumpDbaseDataVfp(LPCTSTR sqlstring, long col, long row, long page, BOOL withfieldname); BOOL DoCreateODBCDSN(LPCTSTR drivername, LPCTSTR description); BOOL DoRemoveODBCDSN(LPCTSTR dsnname); BOOL DoOpenODBCDbaseVfp(LPCTSTR connectstr); void DoSetColWidthEx(long col1, long col2, double width, short units); void DoSetRowHeightEx(long row1, long row2, double height, short units); void DoSetUnScrollRow(long row1, long row2); void DoSetUnScrollCol(long col1, long col2); BOOL DoGetSelectRange(VARIANT* col1, VARIANT* row1, VARIANT* col2, VARIANT* row2); void DoResetContent(); void DoSetPrinter(LPCTSTR devname); void DoSetPrintPara2(short scale, BOOL gridline, BOOL allcell); void DoSetCellPrintable(long col, long row, BOOL hide); BOOL DoAppendPageFromFile(LPCTSTR filename, long startpage, long count); BOOL IsModified(); void DoSetModifiedFlag(BOOL modified); BOOL DoCopyPage(long dest, long source); void DoPrintPage(long page, BOOL showdlg); void DoPrintPreviewPage(long page, BOOL allowPageset); void DoSetHintButtonCell(long col, long row, LPCTSTR text, LPCTSTR mesg, BOOL hide, BOOL canEdit); long DoSaveTextFile(LPCTSTR filename, long format); long DoSaveHtmlFile(LPCTSTR filename); long DoReadTextFile(LPCTSTR filename, long format); BOOL DoAddUserFunctionEx(LPCTSTR functype, LPCTSTR name, short rttype, short paranum, short* paratype, short* defaultpara, LPCTSTR funchelpstring); void AboutBox(); }; //{{AFX_INSERT_LOCATION}} // Microsoft Developer Studio will insert additional declarations immediately before the previous line. #endif // !defined(AFX_CELL_H__A614CD07_7E20_11D2_B6B4_444553540000__INCLUDED_)